﻿namespace Common.Framework.Core.Cache
{
    /// <summary>
    /// MemoryCache
    /// </summary>
    public static class MemoryCache
    {
        /// <summary>
        /// 锁
        /// </summary>
        private readonly static object locker = new object();

        /// <summary>
        /// 实例
        /// </summary>
        private static MemoryCacheExtension instance;

        /// <summary>
        /// 实例
        /// </summary>
        public static MemoryCacheExtension Instance
        {
            get
            {
                if (instance == null)
                {
                    lock (locker)
                    {
                        instance = new MemoryCacheExtension();
                    }
                }
                return instance;
            }
        }
    }
}
